// 登录页请求
import { login } from '../../../Api/index.js'
const loginAbout = {
  namespaced: true,
  actions: {
    async login ({ commit }, value) {
      const result = await login(value)

      commit('LOGIN', result)
    }
  },
  mutations: {
    LOGIN (state, value) {
      state.loginStatus = value
    }
  },
  state: {
    loginStatus: {}
  }
}
export default loginAbout
